package org.bigmarketapi.projectreview.DesingMode.strategyMode.Impl;

import lombok.extern.slf4j.Slf4j;
import org.bigmarketapi.projectreview.DesingMode.strategyMode.ILogicChain;
import org.bigmarketapi.projectreview.DesingMode.strategyMode.abstractLogicChain;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: ProjectReview
 * @BelongsPackage: org.bigmarketapi.projectreview.DesingMode.strategyMode.Impl
 * @Author: dujiaqi
 * @CreateTime: 2024-08-13  14:42
 * @Description: TODO
 * @Version: 1.0
 */
@Component("first")
@Slf4j
public class firstLogic extends abstractLogicChain {
    @Override
    public String doLogic(String str) {
        log.info("first: {}",str);
        return next().doLogic(str);
    }

    @Override
    public String getName() {
        return "first";
    }
}
